﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;

public partial class kguoqi : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string NowYear = DateTime.Now.ToString("yyy");
        string NowMouth = DateTime.Now.ToString("MM");
        string NowDay = DateTime.Now.ToString("dd");
        if (NowMouth.Length == 1)
        {
            NowMouth = "0" + NowMouth;
        }
        if (NowDay.Length == 1)
        {
            NowDay = "0" + NowDay;
        }
        string NowTime = NowMouth + '/' + NowDay + '/' + NowYear;

        users us = new users();
        us.youxiaoqi = NowTime;
        DataSet ds = us.getk(us);
        gvkucun.DataSource = ds;
        gvkucun.DataBind();
    }
   
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        gvkucun.PageIndex = e.NewPageIndex;
        DataBind();
    }
}